package com.hmeter.cluster;

import java.io.IOException;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hdfs.MiniDFSCluster;
import org.apache.hadoop.hdfs.server.common.HdfsConstants.StartupOption;
import org.apache.hadoop.mapred.MiniMRCluster;

/**
 * Hello cluster!
 * 
 */
public class App {
	public static void main(String[] args) throws IOException {
		Configuration conf = new Configuration();
		conf.set("hadoop.tmp.dir", "tmp");

		System.setProperty("test.build.data", "tmp");
		new MiniDFSCluster(8022, conf, 1, true, true, StartupOption.FORMAT, null);

		System.setProperty("hadoop.log.dir", "tmp/log");
		new MiniMRCluster(1, "hdfs://localhost:8022", 1);
	}
}
